package com.itheima.reggie.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.itheima.reggie.common.LocalDateTimeConverter;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class EmployeeEx {
    @ExcelProperty("员工id")
    private String id;

    @ExcelProperty("员工账号")
    private String username;

    @ExcelProperty("员工名字")
    private String name;

    @ExcelIgnore
    private String password;

    @ExcelProperty("员工手机")
    private String phone;

    @ExcelProperty("员工性别")
    private String sex;

    @ExcelProperty("员工身份证")
    private String idNumber;

    @ExcelProperty("员工状态")
    private String status;

    @ExcelProperty(value ="创建日期",converter = LocalDateTimeConverter.class)
    private LocalDateTime createTime;

    @ExcelProperty(value ="更新日期",converter = LocalDateTimeConverter.class)
    private LocalDateTime updateTime;

    @ExcelProperty("创建人")
    private String createUser;

    @ExcelProperty(value = "更新人")
    private String updateUser;
}
